GHC_FLAGS = -O -Wall -fwarn-simple-patterns -fwarn-tabs -fwarn-incomplete-record-updates -fwarn-monomorphism-restriction -fwarn-implicit-prelude -fno-warn-orphans

all: test

TEST_SOURCES = Tester.hs DependParserTest.hs VersionParserTest.hs \
	       ContentParserTest.hs


Tester: $(DEPEND_SOURCES:%=../%) $(TEST_SOURCES) 
	ghc -i../src $(GHC_FLAGS) --make Tester.hs


.PHONY: clean

test: Tester
	@echo "[Running tests] ..."
	@echo
	@./Tester

clean: 
	rm -f *.o *.hi Tester

